package com.ssy.lingxi.platform.manage.entity.base;

import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 敏感词实体类
 * @author yzc
 * @version 2.0.0
 * @date 2020/10/26
 */
@Data
@Entity
@Table(schema = "public", name = "man_sensitive_word",
        indexes = {@Index(name="man_sensitive_word_name_idx", columnList = "name"), @Index(name="man_sensitive_word_batchNo_idx", columnList = "batchNo")})
public class SensitiveWord implements Serializable {

    private static final long serialVersionUID = -7714206476086694947L;

    /**
     * 主键id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sensitive_word_seq")
    @SequenceGenerator(sequenceName = "man_sensitive_word_seq", name = "sensitive_word_seq", allocationSize = 1)
    private Long id;

    /**
     * 敏感词名称
     */
    @Column(columnDefinition = "varchar(100)")
    private String name;

    /**
     * 备注
     */
    @Column(columnDefinition = "varchar(100)")
    private String remark;

    /**
     * 批次
     */
    @Column(columnDefinition = "varchar(50)")
    private String batchNo;

    /**
     * 创建时间
     */
    @Column
    private Long createTime;
}
